package puzzle.hashikake.imgreader;

import java.io.IOException;

import puzzle.common.imgreader.GenericImgReaderApp;
import puzzle.common.imgreader.ImgPattern;
import puzzle.common.imgreader.ImgPatterns;

public class HashikakeImgReaderApp extends GenericImgReaderApp {
	private static final String DATA_SYMBOLS = "-12345678";
	private static final String VISIBLE_SYMBOLS = " 12345678";

	private static ImgPattern[] createPatterns() {
		ImgPattern[] patterns = new ImgPattern[8];
		System.arraycopy(ImgPatterns.SLIM_NUMBERS, 1, patterns, 0, 8);
		return patterns;
	}

	public HashikakeImgReaderApp() {
		super(createPatterns(), DATA_SYMBOLS, VISIBLE_SYMBOLS);
	}

	public static void main(String[] args) throws IOException {
		HashikakeImgReaderApp app = new HashikakeImgReaderApp();
		app.run(args);
	}
}
